﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>

    <link href="../Others/Blackbird/blackbirdjs/blackbird.css" rel="stylesheet" type="text/css" />
    <script src="../Others/Blackbird/blackbirdjs/blackbird.js" type="text/javascript"></script>

    <script type="text/javascript">

        window.onload = function () {

            var person = function (name) {
                this.hello = function () { log.info(name); }
            };

            var a = new person('a');
            var b = new person('b');

            a.hello();
            b.hello();

            log.info(a.hello === b.hello);

            var person1 = function (name) {
                this.name = name;
            };
            person1.prototype.hello = function () { log.info(this.name); };

            var c = new person1('c');
            var d = new person1('d');

            c.hello();
            d.hello();

            log.info(c.hello === d.hello);

            function f1() {

                var i = 0;

                function f2() {
                    log.info(i++);
                }

                this.f3 = function () { log.info(i++); };

                //return f2;
            }

            var f3 = new f1();
            var f4 = new f1();

            log.toggle();

        };

    
    </script>

</head>
<body>

</body>
</html>
